package com.wind.taobao.api.sns.picture.rest
{
	import com.wind.taobao.api.sns.convert.PictureConvert;
	import com.wind.taobao.api.sns.model.Picture;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	[Deprecated(replacement="com.wind.taobao.api.jianghu.rest.JianghuPictureUploadPictureResponse", since="2.0")]
	/**
	 *  taobao.sns.picture.add Response
	 * @author fxy
	 *
	 */
	public class SNSPictureAddResponse extends TaobaoResponse
	{
		public var picture:Picture;

		public function SNSPictureAddResponse(response:TaobaoResponse=null)
		{
			super(response);
			initPicture();
		}

		private function initPicture():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("albums"))
					picture=PictureConvert.convertPicture(body["rsp"]["albums"]);
			}
		}

	}
}